cmake_minimum_required(VERSION 3.16)

set(TOP_DIR ${CMAKE_CURRENT_LIST_DIR})

project(kylin-os-manager)

SET(CMAKE_CXX_FLAGS "-Wl,-z,now")

add_subdirectory(3rdparty)
add_subdirectory(src)
add_subdirectory(plugins)
add_subdirectory(tool-box)
add_subdirectory(kylin-os-manager-daemon)
add_subdirectory(kylin-os-manager-config)

install(FILES ${TOP_DIR}/data/kylin-os-manager.desktop DESTINATION /usr/share/applications/)
install(FILES ${TOP_DIR}/data/config/kylin-os-manager.conf DESTINATION /etc/ld.so.conf.d/)
install(FILES ${TOP_DIR}/data/config/kylin-os-manager-plugin.conf DESTINATION /etc/kylin-os-manager/)
install(FILES ${TOP_DIR}/data/config/kylin-os-manager-box.conf DESTINATION /etc/kylin-os-manager/)
